﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Meqs.Entity
{
    /// <summary>
    /// 系统权限信息
    /// </summary>
    [Serializable]
    public class SysPrem
    {
        private int _rID;
        private int _systemNo;
        private string _systemName;
        private string _systemremark;
        private int _premNo;
        private string _premName;
        private int _premType;
        private string _premremark;

        public SysPrem()
        {

        }

        public SysPrem(int rID, int systemNo, string systemName, string systemRemark, int premNo, string premName, int premTypem, string premRemark)
        {
            _rID = rID;
            _systemNo = systemNo;
            _systemName = systemName;
            _systemremark = systemRemark;
            _premNo = premNo;
            _premName = premName;
            _premType = premTypem;
            _premremark = premRemark;
        }

        public int RID
        {
            get { return _rID; }
            set { _rID = value; }
        }

        public int SystemNo
        {
            get { return _systemNo; }
            set { _systemNo = value; }
        }

        public string SystemName
        {
            get { return _systemName; }
            set { _systemName = value; }
        }

        public string SystemRemark
        {
            get { return _systemremark; }
            set { _systemremark = value; }
        }

        public int PremNo
        {
            get { return _premNo; }
            set { _premNo = value; }
        }

        public string PremName
        {
            get { return _premName; }
            set { _premName = value; }
        }

        public int PremType
        {
            get { return _premType; }
            set { _premType = value; }
        }

        public string PremRemark
        {
            get { return _premremark; }
            set { _premremark = value; }
        }
    }

    /// <summary>
    /// 子系统及对应的权限数据
    /// </summary>
    public class SystemPrem
    {
        private int _rID;
        private int _systemNo;
        private string _systemName;
        private string _systemremark;
        private List<PremInfo> _listPremInfo;

        public SystemPrem(int rID, int systemNo, string systemName, string systemRemark)
        {
            _rID = rID;
            _systemNo = systemNo;
            _systemName = systemName;
            _systemremark = systemRemark;
        }

        public SystemPrem(int rID, int systemNo, string systemName, string systemRemark, List<PremInfo> listPrem)
        {
            _rID = rID;
            _systemNo = systemNo;
            _systemName = systemName;
            _systemremark = systemRemark;
            _listPremInfo = listPrem;
        }

        public int RID
        {
            get { return _rID; }
            set { _rID = value; }
        }

        public int SystemNo
        {
            get { return _systemNo; }
            set { _systemNo = value; }
        }

        public string SystemName
        {
            get { return _systemName; }
            set { _systemName = value; }
        }

        public string SystemRemark
        {
            get { return _systemremark; }
            set { _systemremark = value; }
        }

        public List<PremInfo> PremList
        {
            get { return _listPremInfo; }
            set { _listPremInfo = value; }
        }
    }
}
